-- GENERATED SPELL FOR [Dreadbeast] --


function spell0_16177(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(29561,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16177', 664, 1)
end

function Sorts_16177(pUnit, Event)
local choix_sorts_16177 = math.random(0, 0)
if choix_sorts_16177 == 0 then
pUnit:RegisterEvent('spell0_16177', 1, 1)
end
end

function mob16177_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16177', math.random(1500, 3000), 1)
end

function mob16177_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16177_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16177_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16177, 1, 'mob16177_Action')
RegisterUnitEvent(16177, 2, 'mob16177_Leave')
RegisterUnitEvent(16177, 3, 'mob16177_Kill')
RegisterUnitEvent(16177, 4, 'mob16177_Die')
